package com.sgj.springcloud.service.impl;

import com.sgj.springcloud.entities.CommonResult;
import com.sgj.springcloud.entities.Payment;
import com.sgj.springcloud.enums.ResEnum;
import com.sgj.springcloud.service.PaymentService;
import org.springframework.stereotype.Component;

/**
 * @author 沈国纪
 * @date 2021/6/5 14:19
 */
@Component
public class PaymentServiceImpl implements PaymentService {
	@Override
	public CommonResult<Payment> paymentSQL(Long id) {
		return new CommonResult<>(ResEnum.SERVICE_DEGRADATION.getCode(), ResEnum.SERVICE_DEGRADATION.getMessage(), new Payment(id, "errorSerial"));
	}
}